<?php

//微信公众平台接口配置
Route::get('wechat', 'WeChatController@config');
//公众号消息交互
Route::post('wechat', 'WeChatController@react');

Route::get('wxconfig', 'WeChatController@getWxConfig');



Route::group(['prefix' => 'wechat'], function(){
	Route::get('device', 'WeChatController@config');
	Route::post('device', 'WeChatController@deviceMessage');
});

Route::get('auth', 'WeChatController@authorization');
Route::get('getDeviceState', 'WeChatController@getDeviceState');
Route::get('getBindOpenIdByDevice', 'WeChatController@getBindOpenIdByDevice');
Route::post('sendMessage', 'WeChatController@sendMessage');
Route::post('bindSuccess', 'WeChatController@bindSuccess');
Route::post('verifyQrcode', 'WeChatController@verifyQrcode');